<template>
    <div>
        <h3>这是School的组件</h3>
        <p>{{ count }}</p>
        <button @click="fn">点击按钮</button>
    </div>
</template>

<script>
export default {
    data() {
        return {
            count: 10
        }
    },
    methods: {
        fn() {
            this.count++
        }
    }
}
</script>

<style>

</style>